package work02.w5.control.junt4;

import static org.junit.Assert.*;

import java.util.Date;

import org.junit.Before;
import org.junit.Test;

import work02.w5.control.Schedule;
import work02.w5.control.server.Toast;
import work02.w5.model.ScheduleFrequence;
import work02.w5.model.ScheduleModel;

public class ScheduleTest {

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void test() {
		Schedule s=	new Schedule();
		s.getSchedule(new Date(),new Date());
		s.addAlarm(new ScheduleModel(new Date(new Date().getTime()),new Date(new Date().getTime()+8000), "Tes", "aaa",1000, ScheduleFrequence.OnlyOnce));
	}
	
	public static void main(String arg[]){
		Toast.startService();
		new ScheduleTest().test();
	}
}
